import Style from "./Style";

type attribute = {
  name: string;
  value: string | boolean;
};

class DomElement {
  type: "document" | "element" | "text";

  tagName?: string; //  标签名

  children?: Array<DomElement>;

  attribute?: attribute;

  computedStyle?: Style; // 类似于{prop1:value1, prop2:value2}

  style?: Style;

  parent?: DomElement;
}

export { attribute, DomElement };
